/**  
 * All rights Reserved, Designed By www.tydic.com
 * @Title:  Task.java   
 * @Package com.axin.entity   
 * @Description:    TODO(用一句话描述该文件做什么)   
 * @author: axin     
 * @date:   2019年4月21日 下午3:38:39   
 * @version V1.0 
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
package com.axin.entity;

/**   
 * @Description: TODO 
 * @ClassName:  Task
 * @author:  Axin 
 * @date:   2019年4月21日 下午3:38:39   
 * @Copyright: 2019 www.hao456.top Inc. All rights reserved. 
 */
public class Task {
	
	
	private Long id;
	private Long userId;
	private String status;//1-运行中 2-暂停 3-关闭
	private int buyTradeCount;//本轮第几单
	private int buyTradeLimit;//系统自动买入单数上限
	
	private Integer accountId;//账户id
	private String symbol;//交易对
	private String averagePrice = "0.00";//平均价
	private String totalAmount = "0.00";//仓位累计数量
	private String totalMoney = "0.00";//仓位累计购买金额
	
	private String buyBasePrice; //保存第一单成交时的均价，用来计算下单位置
	
	private String firstMoney;//首单建仓金额（计价币）
	private String buyLeve;//档位：1-50% 2-40% 3-30% 4-20% 5-10%
	private String buyMethod;  //1-斐波 2-倍投 3-立方倍投
	private String profitPercent;//2.5%-5%止盈百分比 最大10%
	
	private int moneyScale;
	private int amountScale;
	private String quoteCurrency;//计价货币
	

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @return the userId
	 */
	public Long getUserId() {
		return userId;
	}

	/**
	 * @param userId the userId to set
	 */
	public void setUserId(Long userId) {
		this.userId = userId;
	}

	
	
	/**
	 * @return the status
	 */
	public String getStatus() {
		return status;
	}

	/**
	 * @param status the status to set
	 */
	public void setStatus(String status) {
		this.status = status;
	}


	/**
	 * @return the buyTradeCount
	 */
	public int getBuyTradeCount() {
		return buyTradeCount;
	}

	/**
	 * @param buyTradeCount the buyTradeCount to set
	 */
	public void setBuyTradeCount(int buyTradeCount) {
		this.buyTradeCount = buyTradeCount;
	}

	/**
	 * @return the buyTradeLimit
	 */
	public int getBuyTradeLimit() {
		return buyTradeLimit;
	}

	/**
	 * @param buyTradeLimit the buyTradeLimit to set
	 */
	public void setBuyTradeLimit(int buyTradeLimit) {
		this.buyTradeLimit = buyTradeLimit;
	}

	/**
	 * @return the accountId
	 */
	public Integer getAccountId() {
		return accountId;
	}

	/**
	 * @param accountId the accountId to set
	 */
	public void setAccountId(Integer accountId) {
		this.accountId = accountId;
	}

	/**
	 * @return the symbol
	 */
	public String getSymbol() {
		return symbol;
	}

	/**
	 * @param symbol the symbol to set
	 */
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}

	/**
	 * @return the averagePrice
	 */
	public String getAveragePrice() {
		return averagePrice;
	}

	/**
	 * @param averagePrice the averagePrice to set
	 */
	public void setAveragePrice(String averagePrice) {
		this.averagePrice = averagePrice;
	}

	/**
	 * @return the totalAmount
	 */
	public String getTotalAmount() {
		return totalAmount;
	}

	/**
	 * @param totalAmount the totalAmount to set
	 */
	public void setTotalAmount(String totalAmount) {
		this.totalAmount = totalAmount;
	}

	/**
	 * @return the totalMoney
	 */
	public String getTotalMoney() {
		return totalMoney;
	}

	/**
	 * @param totalMoney the totalMoney to set
	 */
	public void setTotalMoney(String totalMoney) {
		this.totalMoney = totalMoney;
	}

	/**
	 * @return the firstMoney
	 */
	public String getFirstMoney() {
		return firstMoney;
	}

	/**
	 * @param firstMoney the firstMoney to set
	 */
	public void setFirstMoney(String firstMoney) {
		this.firstMoney = firstMoney;
	}

	/**
	 * @return the buyLeve
	 */
	public String getBuyLeve() {
		return buyLeve;
	}

	/**
	 * @param buyLeve the buyLeve to set
	 */
	public void setBuyLeve(String buyLeve) {
		this.buyLeve = buyLeve;
	}

	/**
	 * @return the buyMethod
	 */
	public String getBuyMethod() {
		return buyMethod;
	}

	/**
	 * @param buyMethod the buyMethod to set
	 */
	public void setBuyMethod(String buyMethod) {
		this.buyMethod = buyMethod;
	}

	/**
	 * @return the profitPercent
	 */
	public String getProfitPercent() {
		return profitPercent;
	}

	/**
	 * @param profitPercent the profitPercent to set
	 */
	public void setProfitPercent(String profitPercent) {
		this.profitPercent = profitPercent;
	}

	/**
	 * @return the moneyScale
	 */
	public int getMoneyScale() {
		return moneyScale;
	}

	/**
	 * @param moneyScale the moneyScale to set
	 */
	public void setMoneyScale(int moneyScale) {
		this.moneyScale = moneyScale;
	}

	/**
	 * @return the amountScale
	 */
	public int getAmountScale() {
		return amountScale;
	}

	/**
	 * @param amountScale the amountScale to set
	 */
	public void setAmountScale(int amountScale) {
		this.amountScale = amountScale;
	}

	/**
	 * @return the quoteCurrency
	 */
	public String getQuoteCurrency() {
		return quoteCurrency;
	}

	/**
	 * @param quoteCurrency the quoteCurrency to set
	 */
	public void setQuoteCurrency(String quoteCurrency) {
		this.quoteCurrency = quoteCurrency;
	}

	/**
	 * @return the buyBasePrice
	 */
	public String getBuyBasePrice() {
		return buyBasePrice;
	}

	/**
	 * @param buyBasePrice the buyBasePrice to set
	 */
	public void setBuyBasePrice(String buyBasePrice) {
		this.buyBasePrice = buyBasePrice;
	}

	/* (non-Javadoc)
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return "Task [id=" + id + ", userId=" + userId + ", status=" + status + ", buyTradeCount=" + buyTradeCount
				+ ", buyTradeLimit=" + buyTradeLimit + ", accountId=" + accountId + ", symbol=" + symbol
				+ ", averagePrice=" + averagePrice + ", totalAmount=" + totalAmount + ", totalMoney=" + totalMoney
				+ ", buyBasePrice=" + buyBasePrice + ", firstMoney=" + firstMoney + ", buyLeve=" + buyLeve
				+ ", buyMethod=" + buyMethod + ", profitPercent=" + profitPercent + ", moneyScale=" + moneyScale
				+ ", amountScale=" + amountScale + ", quoteCurrency=" + quoteCurrency + "]";
	}


	
	
	

	
	
	

}
